package com.sxkj.common.pay.xypay;


/**
 * 常量
 */
public class XYPayConstants {

    public enum SignType {
        MD5, HMACSHA256
    }

    public static final String GATEWAY_URL = "https://pay.swiftpass.cn/pay/gateway";


    public static final String SUCCESS = "0";
    public static final String TRADE_STATE = "SUCCESS";
    public static final String HMACSHA256 = "HMAC-SHA256";
    public static final String MD5 = "MD5";

    public static final String FIELD_SIGN = "sign";
    public static final String FIELD_SIGN_TYPE = "sign_type";

    //提交付款码支付API
    public static final String microPayService = "unified.trade.micropay";
    //微信】公众号&小程序支付 / 初始化请求API
    public static final String wxPayService = "pay.weixin.native";
    public static final String wxjsPayService = "pay.weixin.jspay";
    public static final String aliPayService = "pay.alipay.native";
    //查询订单API
    public static final String unifiedTradeQueryService = "unified.trade.query";
    //撤销订单API
    public static final String unifiedMicropayReverseService = "unified.micropay.reverse";
    //申请退款API
    public static final String unifiedTradeRefundService = "unified.trade.refund";
    //退款查询API-提交退款申请后， 通过调用该接口查询退款状态。 退款有一定延时， 请在 3 个工作日后
    public static final String unifiedTradeRefundquery = "unified.trade.refundquery";


}

